Scenario #4090: Create Subsequent Membership of Partner

UseCase Create Membership => Membership: M-3101001 - Test AG

Properties

Required

Given

name value
partnerName Test AG
memberNumberSuffix 01
validFrom 2025-02-24
newStatus ACTIVE
membershipFeeBillable true

Partner: Test AG

HTTP GET "/api/hs/office/partners?name=Test+AG" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "3da9e2a0-95cc-4ea4-bb4c-e73ad571beb4", // Partner: P-31010 - Test AG
  "partnerNumber" : "P-31010",
  "partnerRel" : {
    "uuid" : "f1943189-716b-46ea-8218-fa169740db15", // partnerRelationUuid
    "anchor" : {
      "uuid" : "806e75fe-7894-4422-86be-783107f07f3f", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "00ddd2fc-8742-46e5-924c-77749d4c8ccc", // Person: Test AG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Test AG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "351fc296-c0f1-459a-8730-4a65b9605cee", // Contact: Test AG - China
      "caption" : "Test AG - China",
      "postalAddress" : {
        "country" : "China",
        "province" : "Guangdong Province",
        "city" : "Dongguan City",
        "street" : "No.2 Commercial Second Street",
        "district" : "Niushan Wei Wu",
        "department" : "Executive Board",
        "building" : "Thi Chi Koh Building"
      },
      "emailAddresses" : {
        "main" : "norden@test-ag.example.org"
      },
      "phoneNumbers" : {
        "phone" : "++15 999 654321"
      }
    }
  },
  "details" : {
    "uuid" : "ec212097-b265-4392-b0ad-2806db2beb66",
    "registrationOffice" : "Registergericht Hamburg",
    "registrationNumber" : "1234567",
    "birthName" : null,
    "birthPlace" : null,
    "birthday" : null,
    "dateOfDeath" : null
  }
} ]

In production data, this query could result in multiple outputs. In that case, you have to find out which is the right one.

Create Membership: M-3101001 - Test AG

HTTP POST "/api/hs/office/memberships" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "partner.uuid" : "3da9e2a0-95cc-4ea4-bb4c-e73ad571beb4", // Partner: P-31010 - Test AG
  "memberNumberSuffix" : "01",
  "status" : "ACTIVE",
  "validFrom" : "2025-02-24",
  "membershipFeeBillable" : "true"
}
EOF
=> status: 201 CREATED c0bdaafe-6e94-4ade-bcb5-98b7c3a8844f

Verify That the Membership Got Created

HTTP GET "/api/hs/office/memberships/c0bdaafe-6e94-4ade-bcb5-98b7c3a8844f" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "c0bdaafe-6e94-4ade-bcb5-98b7c3a8844f",
  "partner" : {
    "uuid" : "3da9e2a0-95cc-4ea4-bb4c-e73ad571beb4", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "f1943189-716b-46ea-8218-fa169740db15", // partnerRelationUuid
      "anchor" : {
        "uuid" : "806e75fe-7894-4422-86be-783107f07f3f", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "00ddd2fc-8742-46e5-924c-77749d4c8ccc", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "351fc296-c0f1-459a-8730-4a65b9605cee", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "country" : "China",
          "province" : "Guangdong Province",
          "city" : "Dongguan City",
          "street" : "No.2 Commercial Second Street",
          "district" : "Niushan Wei Wu",
          "department" : "Executive Board",
          "building" : "Thi Chi Koh Building"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "ec212097-b265-4392-b0ad-2806db2beb66",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101001",
  "memberNumberSuffix" : "01",
  "validFrom" : "2025-02-24",
  "validTo" : null,
  "status" : "ACTIVE",
  "membershipFeeBillable" : true
}

generated on 2026-08-10 01:37:53 for branch